package com.asc.test {
import com.asc.Identifiable;


/**
 *
 */
public final class DefaultIdentifiable implements Identifiable {
  private var value:int;
  public function DefaultIdentifiable(value:int) {
    this.value = value
  }

  /**
   *
   * @param other
   * @return
   */
  public function equals(other:Identifiable):Boolean {
    if(other is DefaultIdentifiable) {
      const o:DefaultIdentifiable = other as DefaultIdentifiable;
      return value === o.value; 
    }
    return false;
  }

  /**
   *
   * @return
   */
  public function hashCode():int {
    return value;
  }

  /**
   * 
   * @return
   */
  public function get toString():String {
    return "value[" + value + "]";
  }
}
}